package com.dayuanit.dy14.enter.dy14enter1024.controller;

import com.dayuanit.dy14.enter.dy14enter1024.dto.ResponseDTO;
import com.dayuanit.dy14.enter.dy14enter1024.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/user")
public class UserController extends BaseController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/signUp", method = RequestMethod.POST)
    public ResponseDTO signUp(String username, String email, String sex) {
        userService.signUp(username, email, sex);
        return ResponseDTO.success();
    }



}
